import 'package:flutter/material.dart';
import 'package:hospitable_rental/pages/home/profile/function_button.dart';
import 'package:hospitable_rental/pages/home/profile/function_buttons_item.dart';

class ProfileButton extends StatelessWidget {
  const ProfileButton({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.symmetric(vertical: 10.0),
      child: Wrap(
        spacing: 10.0,
        runSpacing: 10.0,
        children: buttonItemList
            .map(
              (item) => FunctionButton(item),
            )
            .toList(),
      ),
    );
  }
}
